package com.elong.android.specialhouse.entity;

import com.elong.infrastructure.entity.ElongTravelEntity;
import com.elong.infrastructure.entity.Group;

import java.io.Serializable;

public class ApartmentSearchChildDataInfo implements Serializable, ElongTravelEntity, ApartmentSearchDataInterface {
	private int iconResource;
	private String name = "";
	private String parentName = "";
	private boolean isSelect = false;
	private boolean isLeaf;
	private Group<ApartmentSearchChildDataInfo> childDataInfos;
	private String id;
	private String parentId;
	private String longitude;
	private String latitude;
	private ApartmentSearchDataInterface parentInfo;
	private int level;
	private String selectChildName;

	public ApartmentSearchChildDataInfo(ApartmentSearchDataInterface parentInfo) {
		super();
		this.parentInfo = parentInfo;
	}

	public ApartmentSearchChildDataInfo() {
		super();
	}

	public ApartmentSearchChildDataInfo(int iconResource, String name, boolean isLeaf, String parentName,
										ApartmentSearchDataInterface parentInfo) {
		super();
		this.iconResource = iconResource;
		this.name = name;
		this.isLeaf = isLeaf;
		this.parentName = parentName;
		this.parentInfo = parentInfo;
	}

	public ApartmentSearchDataInterface getParentInfo() {
		return parentInfo;
	}

	public String getSelectChildName() {
		return selectChildName;
	}

	public void setSelectChildName(String selectChildName) {
		this.selectChildName = selectChildName;
	}

	public void setParentInfo(ApartmentSearchDataInterface parentInfo) {
		this.parentInfo = parentInfo;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public int getIconResource() {
		return iconResource;
	}

	public void setIconResource(int iconResource) {
		this.iconResource = iconResource;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isSelect() {
		return isSelect;
	}

	public void setSelect(boolean isSelect) {
		this.isSelect = isSelect;
	}

	public boolean isLeaf() {
		return isLeaf;
	}

	public void setLeaf(boolean isLeaf) {
		this.isLeaf = isLeaf;
	}

	@Override
	public Group<ApartmentSearchChildDataInfo> getChildDataInfos() {
		return childDataInfos;
	}

	public void setChildDataInfos(Group<ApartmentSearchChildDataInfo> childDataInfos) {
		this.childDataInfos = childDataInfos;
	}

	@Override
	public String getName() {
		return name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
}